package com.xma.springcloud.alibaba.service;

import com.xma.springcloud.common.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: arthur
 * @License: (C) Copyright 2020-2028, xxx Corporation Limited.
 * @Contact: 413911174@qq.com
 * @Date: 2020/7/6 22:44
 * @Version: 1.0
 * @Description: 库存服务
 */
@FeignClient(value = "seata-storage-service")
public interface TtStorageService {
    @PostMapping(value = "/storage/decrease")
    public ResponseResult decrease(@RequestParam("productId") Long productId,@RequestParam("count") Integer count);
}
